package com.guit.hrms.scheduledTasks;

import com.guit.hrms.service.IntervieweeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.stream.Collectors;

@Component
@EnableScheduling
public class OfferPollingTask {
    @Autowired
    private IntervieweeService intervieweeService;

    @Scheduled(cron = "0 0 12 * * ?")
    public void checkExpiredOffersBatch() {
        intervieweeService.checkExpiredOffersBatch();
    }
}
